package com.fannnnn.system.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \*  Created with IntelliJ IDEA.
 * \*  @author shensifan
 * \*  Date: 2022/1/26
 * \*  Time: 18:01
 * \*  Description:
 * \
 */

@RestController
@PreAuthorize("hasAuthority('test')")
public class TestController {

    @RequestMapping("/hello")
    public String hello(){
        return  "hello";
    }
}
